home *** CD-ROM | disk | FTP | other *** search
- Path: lerc.nasa.gov!purdue!yuma!steffend
- From: steffend@lamar.colostate.edu (Dave Steffen)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Statistically Random Number algorithm
- Followup-To: comp.lang.c,comp.lang.c++
- Date: 19 Mar 1996 17:48:45 GMT
- Organization: Colorado State University, Fort Collins, CO 80523
- Message-ID: <4ims1t$193o@yuma.ACNS.ColoState.EDU>
- References: <314D0B67.3C16@psu.edu>
- NNTP-Posting-Host: glitch.physics.colostate.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Jason A. Soloff (jas251@psu.edu) wrote:
- > Hi all...
- >
- > I am working on a monte carlo simulation program to model some problems
- > in astronomy. One thing I am running into, however, is the problem of
- > the pseudo-random number tables. Does anyone have an algorithm (or
- > code) for a truly statistically random number generator?
-
- Of course, _truly_ random numbers need special hardware;
- however, there are routines that are quite good at generating
- _statistically uncorrelated_ numbers. Check out "Numerical Recipes in
- C" 2nd Ed. Chapter 7 for several good ones. There may be better ones
- out there but (so far) NumRec's stuff is good enough for me.
-
- /\
- \/
-
- Dave Steffen No, his mind is not for rent
- Dept. of Physics To any God or Government
- Colorado State University Always hopeful, yet discontent
- steffend@lamar.colostate edu He knows changes aren't permanent-
- But change is...
- "Speak softly...
- ... and carry a black belt!" -Neal Peart / RUSH
- -----------------------------------------------------------------------
-